package com.marry.statics;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author ml
 * @create 2017-07-07--13:50
 */
@Configuration
public class StaticResConfiguration extends WebMvcConfigurerAdapter {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {

        registry.addResourceHandler("/marry/9/resources/**").addResourceLocations("classpath:/static/");
    }
}
